package com.njits.traffic.oscache;
import java.util.Date;

public class User {
	private int id;
	private String name;
	private String sex;
	private int age;
	private Date accessTime;

	public User(int id) {
		super();
		this.id = id;
		this.accessTime = new Date();
	}

	public String toString() {
		return "User info is : id=" + id + " accessTime= "
				+ accessTime.toString();
	}

	public User(String name, String sex, int age) {
		super();
		this.name = name;
		this.sex = sex;
		this.age = age;
	}

	public User() {
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getAccessTime() {
		return accessTime;
	}

	public void setAccessTime(Date accessTime) {
		this.accessTime = accessTime;
	}
}
